[#ftl]
[#include "util10.ftl"/]
<!DOCTYPE html>
[#if applicationMode = "PROD"]
<html manifest="index1CacheManifest.manifest">
[#else]
<html>
[/#if]
<head>
</head>
<body>
<div id="progress" style="display:none"></div>
<script type="text/javascript">
	var progress = document.getElementById("progress");
	var appCache = window["applicationCache"];
	if(appCache){		
		appCache.addEventListener('updateready', function(e) {
			progress.innerHTML = "100%";
		}, false);
		appCache.addEventListener('cached', function(e) {
			progress.innerHTML = "100%";		
		}, false);
		appCache.addEventListener('noupdate', function(e) {
			progress.innerHTML = "100%";		
		}, false);
		appCache.addEventListener('error', function(e) {
			progress.innerHTML = "100%";		
		}, false);	
		appCache.addEventListener('progress', function(e) {
			[#--//ProgressEvent {total: 334, loaded: 333, lengthComputable: true, path: Array[0], cancelBubble: false }--]			
			if(e.loaded & e.total){
				progress.innerHTML = Math.ceil(100 * (e.loaded / e.total)) + "%";
			}
		}, false);	
	}
	else{	
		progress.innerHTML = "100%";	
	}
</script> 
</body>
</html>